Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Implement state filter and multi select filters #27

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

kylezryr
Copy link
Contributor

What's new in this PR 🧑‍🌾

Description

  • Implemented state filter dropdown
  • Split FilterDropdown components into separate single and multiple select components
  • Added a default screen prompting the user to select a state before viewing PlantList

Screenshots

How to review

Next steps

  • Styling!!

Relevant links

Online sources

https://linear.app/trap-garden/issue/TG-26/implement-state-filter-and-multi-select-filters

Related PRs

CC: @ccatherinetan

@kylezryr kylezryr linked an issue Oct 26, 2024 that may be closed by this pull request
Copy link
Collaborator

@ccatherinetan ccatherinetan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking amazing!
ik we talked about styling stuff / resizing of the buttons, but i honestly wouldn't worry too much about it. after the 2 comments i left are addressed, we're ready to merge!

package-lock.json Outdated Show resolved Hide resolved
app/seasonal-planting-guide/page.tsx Outdated Show resolved Hide resolved
@kylezryr kylezryr force-pushed the 19-implement-state-filter-and-multi-select-filters branch from fcc6aef to 7be66e3 Compare November 4, 2024 01:03
Copy link
Collaborator

@ccatherinetan ccatherinetan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great! a couple things

  1. styling of the "Search Plants" button (lower priority, can be pushed to later)
  2. making use of the label/values in MultiSelectDropdown

@@ -0,0 +1,14 @@
import styled from 'styled-components';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2024-11-03 at 5 12 15 PM Can we make it so that the outline appears around the grey area, rather than in the middle of the bar?

HeaderContainer,
PageContainer,
StateOptionsContainer,
} from './styles';

const SeasonalPlantingGuide = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be consistent with the rest of the codebase, this should be

export default const SeasonalPlantingGuide

}: FilterDropdownProps) {
return (
<MultiSelect
options={options.map(option => ({ label: option, value: option }))}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's actually map labels to the corresponding SeasonEnum values

@@ -0,0 +1,23 @@
import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be renamed to index.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement State Filter and Multi-Select Filters
2 participants